package vn.vfriends.soffice.service;

import java.io.Serializable;
import java.util.List;
import vn.vfriends.soffice.model.Dept;

/**
 *
 * @author chaungoctuan@gmail.com
 */
public interface DeptService extends Serializable {

    void create(Dept dept) throws Exception;

    void edit(Dept dept) throws Exception;

    void remove(Dept dept) throws Exception;

    Dept find(Object id);

    List<Dept> findAll();
    
    Dept findByCode(String code);
    
    Dept findByName(String name);

    List<Dept> findRange(int[] range);

    int count();
}
